-- dungeon_hp
-- create by shuzy
-- 附加属性：特定地图穿戴时，最大生命提升N点

return {
    apply = function(prop, baseValue)
        -- 提升的值
        return baseValue + prop[3];
    end,

    desc = function(prop)
        local row = PropM.getRow(prop[1]);
        local desc = row.desc;

        local num = prop[3];
        local name = DungeonAreaM.query(prop[2], "name");

        desc = string.gsub(desc, "{0}", name);
        desc = string.gsub(desc, "{1}", num);

        return desc;
    end,

    record = function(target, prop, path)
        return false;
    end 
};